package com.linkvin.ec.hcs.service.security.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * Created by qichao on 2017/11/29.
 */

@Configuration
@ConfigurationProperties(prefix = "security.jwt")
public class JwtSettings {

    // 签名
    @Value("${security.jwt.secret}")
    private String secret;
    @Value("${security.jwt.header}")
    private String header;
    @Value("${security.jwt.expiration}")
    private Long expiration;
    @Value("${security.jwt.tokenHead}")
    private String tokenHead;
    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public Long getExpiration() {
        return expiration;
    }

    public void setExpiration(Long expiration) {
        this.expiration = expiration;
    }

    public String getTokenHead() {
        return tokenHead;
    }

    public void setTokenHead(String tokenHead) {
        this.tokenHead = tokenHead;
    }
}
